﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IDictionary<string, List<string>>>" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    Busqueda por Seguro
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
<h2>Búsqueda por Seguro</h2>
    
    <div class="content">
        <div id="combo_zone2" style="width: 500px; height: 200px;">
            <div class="tipo" align="right">
                <select style='width: 120px;' id="combo_zone10" name="alfa1">
                    <option value="1" selected href="AvanzadoS.html">Seguros</option>
                    <option value="2" href="AvanzadoR.html">Revisión Tecnica</option>
                    <option value="3" href="AvanzadoST.html">Servicio Tecnico</option>
                </select>
            </div>
            
            <div class="tipo" align="right">
            <form action = "/Seguros/IndexMarcaSeleccionada" method="post">
                Marca:
                <select style='width: 120px;' id="combo_zone1" name="Marcas"onchange="this.form.submit()">
                    <%  foreach (string mar in Model.Keys)
                        {%>
                            
                    <option value="<%= Html.Encode(mar)%>"><%= Html.Encode(mar)%>
                    </option>
                    <%
                        } %>
                </select>
                </form>
                
            </div>
            
            

            <form action="/Seguros/IndexResultadoBusqueda" method="post">
            <div class="tipo" align="right">
                Modelo:
                <select style='width: 120px;' id="combo_zone2" name="Modelos">

                <% 
                       foreach (string modelos in Model[Model.Keys.First().ToString()])
                       {%>
                       <option value="<%= Html.Encode(modelos)%>"><%= Html.Encode(modelos)%></option><%
                       }
                   %>
                </select></div>
            <div class="tipo" align="right">
                Año:
                <select style='width: 120px;' id="combo_zone3" name="Años">
                    <option value="2000"selected >2000</option>
                    <option value="2001">2001</option>
                    <option value="2002">2002</option>
                    <option value="2003">2003</option>
                    <option value="2004">2004</option>
                    <option value="2005">2005</option>
                    <option value="2006">2006</option>
                    <option value="2007">2007</option>
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010">2010</option>
                </select></div>
            <div class="tipo" align="right">
                Deducible:
                <select style='width: 120px;' id="combo_zone4" name="Deducible">
                    <option value="Mayor">Mayor</option>
                    <option value="Igual" selected>Igual</option>
                    <option value="Menor">Menor</option>
                </select>
                <select style='width: 120px;' id="combo_zone5" name="PrecioDeducible">
                    <option value="5000" selected>$5000</option>
                    <option value="10000">$10000</option>
                    <option value="15000">$15000</option>
                </select></div>
            <div class="tipo" align="right">
                Prima:
                <select style='width: 120px;' id="combo_zone6" name="Prima">
                    <option value="Mayor">Mayor</option>
                    <option value="Igual">Igual</option>
                    <option value="Menor" selected>Menor</option>
                </select>
                <select style='width: 120px;' id="combo_zone7" name="PrecioPrima">
                    <option value="5000">$5000</option>
                    <option value="10000">$10000</option>
                    <option value="15000">$15000</option>
                </select></div>
                
            <div class="tipoa" align="right">
                <input class="buttonC" type="submit" value="Buscar" align="right" />
            </div>
            </form>
        </div>
    </div>
    
    </div> </body> </html>
</asp:Content>
